import React from 'react'
import ReactDOM from 'react-dom'

// 路由
import { createRoute } from './router/index'

// Antd-pc 样式  -- 整体导入
// import 'antd/dist/antd.css';

// 导入路由 @5
import { BrowserRouter as Router } from 'react-router-dom'

// redux
import { Provider } from 'react-redux'
import store from './store'

// antd-pc 国际化处理
import zhCN from 'antd/es/locale/zh_CN'
import { ConfigProvider } from 'antd'
// 日历国际化
import moment from 'moment'
import 'moment/locale/zh-cn'
moment.locale('zh-cn')

ReactDOM.render(
  <Provider store={store}>
    <Router>
      <ConfigProvider locale={zhCN}>{createRoute()}</ConfigProvider>
    </Router>
  </Provider>,
  document.getElementById('root')
)
